/*
 * Created by: Peter Weissbrod
 * Created: Monday, January 21, 2008
 */
using System;
using PostSharp.Laos;

namespace PostSharp.UserSamples.Exceptions
{
    public class ValidationException : Exception
    {
        private readonly MethodExecutionEventArgs m_MethodExecutionEventArgs;
        public ValidationException(string message, MethodExecutionEventArgs methodExecutionEventArgs) : base(message)
        {
            m_MethodExecutionEventArgs = methodExecutionEventArgs;
        }
        public override string Message
        {
            get
            {
                return "Validation fault: ["+base.Message +"] at ["+m_MethodExecutionEventArgs.Method+"].";
            }
        }
    }
}